
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian"
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "release"&&OS="RedHat"
if [ "$OS" = "RedHat" ];then
        yum -y localinstall https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
        yum -y install php72w
        yum -y install php72w-cli php72w-common php72w-devel php72w-mysql php72w-fpm
        yum -y install php72w-gd php72w-imap php72w-ldap php72w-odbc php72w-pear php72w-xml php72w-xmlrpc php72w-mbstring php72w-pdo
fi
if [ "$OS" = "Debian" ];then
        apt-get -y install php7.[0-9]
        apt-get -y install php7.[0-9]-mysql php7.[0-9]-fpm
        apt-get -y install php7.[0-9]-gd php7.[0-9]-mbstring php7.[0-9]-xmlrpc
fi
